package cn.kgc.dao;

import cn.kgc.entity.Teacher;

import java.util.List;

public interface TeacherDao {
//    查询方法和模糊查询
    List<Teacher> search(int currentPage,int currentSize,String jobnum,String name,String specialty);
//    计算总的记录数
    int totalCount(String jobnum,String name,String specialty);
    //增加方法：
    int add(Teacher teacher);
    //计算总页数
    int totalPage(int pageSize,String jobnum,String name,String specialty);


    Teacher getById(String ids);

    int updateTeacher(Teacher teacher);
}
